package com.cc.visitor.service;

import com.cc.visitor.dao.LogErrorMapper;
import com.cc.visitor.entity.LogError;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author chanchaw
 * @create 2024-09-28 14:07
 */
@Service
public class LogErrorServiceImpl implements LogErrorService{
    @Autowired
    private LogErrorMapper dao;
    @Override
    public int insertGetOpenId(LogError record){
        record.setModule("backend");
        record.setFunc("WechatUtils.getUserProfile");
        return dao.insert(record);
    }

    @Override
    public int insert(LogError record){
        return dao.insert(record);
    }
}
